#include <iostream>

using namespace std;

int main() {
	string str;

	while(cin >> str) {
		long result = 0;
		int flag = 1;
		
		int i = 0;
		if (str[0] == '-'){
			flag = -1;
		}
		if (str[0] == '-' || str[0] == '+') {
			++i;
		}

		for(; i < str.length(); ++i) {
			result *= 10;
			result += str[i] - '0';
		}

		result *= flag;
		cout << result << endl;
	}
}
